package com.neepu.pojo;


import java.text.SimpleDateFormat;
import java.util.Date;

public class MessageBoard {

    private String id;
    private String content;
    private String person;
    private String avatar;

    private Date pushtime;
    private String creatTimeStr;
    private SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");



    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public Date getPushtime() {
        return pushtime;
    }

    public void setPushtime(Date pushtime) {
        this.pushtime = pushtime;
        String time = sdf.format(pushtime);
        setCreatTimeStr(time);
    }

    public String getCreatTimeStr() {
        return creatTimeStr;
    }

    public void setCreatTimeStr(String creatTimeStr) {
        this.creatTimeStr = creatTimeStr;
    }


    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public String toString() {
        return "MessageBoard{" +
                "id='" + id + '\'' +
                ", content='" + content + '\'' +
                ", person='" + person + '\'' +
                ", avatar='" + avatar + '\'' +
                ", pushtime=" + pushtime +
                ", creatTimeStr='" + creatTimeStr + '\'' +
                ", sdf=" + sdf +
                '}';
    }
}
